package com.chris.blog.service;

import com.chris.blog.entity.po.BlogPO;
import com.github.pagehelper.Page;

public interface BlogService{


    int deleteByPrimaryKey(Integer id);

    int insert(BlogPO record);

    int insertSelective(BlogPO record);

    BlogPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogPO record);

    int updateByPrimaryKey(BlogPO record);

    int count(String uid);

    Page<BlogPO> findAllByUIdDesc(String uid);

    Page<BlogPO> findAllDesc();

    //根据博客id 查询博客
    BlogPO findOneByBid(Long bid);

    Page<BlogPO> findAllByCIdDesc(int cid);
}
